package com.aosiding.miaosha.dao;

import com.aosiding.miaosha.entity.Stock;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Repository
public interface StockDAO {
    //根据商品id查询库存信息的方法
    Stock checkStock(Integer id);

    //根据商品id扣除库存
    void updateSale(Stock stock);

    //根据商品id扣除库存
    int updateSale2(Stock stock);

}
